package cn.rc.rcsystem.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-12-09
 */
@TableName("rental_car_return_older")
public class RentalCarReturnOlder extends Model<RentalCarReturnOlder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer state;
    private String sn;
    @TableField("car_rental_id")
    private Long carRentalId;
    @TableField("user_id")
    private Long userId;
    @TableField("shop_id")
    private Long shopId;
    @TableField("rental_cars")
    private Date rentalCars;
    private Integer odometer;
    private BigDecimal rent;
    @TableField("return_rent")
    private BigDecimal returnRent;
    private Date createtime;
    private String brand;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Long getCarRentalId() {
        return carRentalId;
    }

    public void setCarRentalId(Long carRentalId) {
        this.carRentalId = carRentalId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Date getRentalCars() {
        return rentalCars;
    }

    public void setRentalCars(Date rentalCars) {
        this.rentalCars = rentalCars;
    }

    public Integer getOdometer() {
        return odometer;
    }

    public void setOdometer(Integer odometer) {
        this.odometer = odometer;
    }

    public BigDecimal getRent() {
        return rent;
    }

    public void setRent(BigDecimal rent) {
        this.rent = rent;
    }

    public BigDecimal getReturnRent() {
        return returnRent;
    }

    public void setReturnRent(BigDecimal returnRent) {
        this.returnRent = returnRent;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "RentalCarReturnOlder{" +
        ", id=" + id +
        ", state=" + state +
        ", sn=" + sn +
        ", carRentalId=" + carRentalId +
        ", userId=" + userId +
        ", shopId=" + shopId +
        ", rentalCars=" + rentalCars +
        ", odometer=" + odometer +
        ", rent=" + rent +
        ", returnRent=" + returnRent +
        ", createtime=" + createtime +
        ", brand=" + brand +
        "}";
    }
}
